import storage from "./storage";

/**
 * zxd
 * @param code
 * @returns {*}
 */
var statusCode = function(code) {
  var lang = storage.getCookie("Language");
  var status;
  if (lang == "en") {
    //英语
    status = {
      "-21":"Unknown error",
      "-20": "Verification failed, a Wrong verification step",
      "-18": "E-mail Verification code error",
      "-17": "Failed cancel order",
      "-16": "Failed order",
      "-15": "The ID verification imformation wrong", //The ID verification imformation wrong, you left * times
      "-14": "Encoding Unsupported",
      "-13": "ID verification failed much time, please try again in 2 hours.",
      "-12": "ID verification apply much time, please try again in 2 hours.",
      "-11": "Google Auth. Failed much time, please try again in 2 hours.",
      "-10":
        "This IP Google Auth. Failed much time, please try again in 2 hours.",
      "-9": "SMS code apply much time, please try again in 2 hours.",
      "-8": "SMS code failed much time, please try again in 2 hours.",
      "-7": "This IP SMS code apply much time, please try again in 2 hours.",
      "-6": "This IP SMS code failed much time, please try again in 2 hours.",
      "-5": "The commission price deviated too much from the current price",
      "-4": "Aliyun Verification failed",
      "-3": "Account Frozen",
      "-2": "IP Frozen",
      "-1": "Not Login",
      "0": "Successful",
      "1": "Parameter error",
      "2": "Phone Verification code error",
      "3": "System busy",
      "4": "Please agree agreement first",
      "5": "Phone/email wrong",
      "6": "Password malformed or not the same",
      "7": "System busy",
      "8": "SMS code malformed",
      "9": "Phone number malformed",
      "10": "Email address malformed",
      "11": "Google Auth. Wrong", //Google Auth. Wrong, you left * times
      "12": "The only secondary strategy can't be untied",
      "13": "Couldn't unlink until link Google Auth.",
      "14": "Please bind relevant strategy first",
      "15": "The password couldn't same to old password",
      "16": "The login password couldn't same to admin password",
      "17": "The phone number exists already",
      "18": "SMS code wrong",
      "19": "SMS code wrong",
      "20": "Withdraw address wrong",
      "21": "The withdraw amount couldn't greater than availbe",
      "22": "Admin password malformed",
      "23": "Too frequent email requests",
      "24": "The withdraw amount greater than the max amount one time",
      "25": "You have been reached the limit of one day",
      "26":
        "This IP address is logging in too frequently, please try again in 2 hours.",
      "27": "Login failed 5 times, please try again in 10 minutes",
      "28": "Please open cookie",
      "29": "Admin password wrong 5 times, please try again in 30 minutes.",
      "30": "Forbid withdraw within 24 hours",
      "31": "The withdraw amount less than the min amount one time",
      "32": "The test of withdraw safe didn't pass.",
      "33": "The email has been used",
      "34": "The email has been expired",
      "35": "The SMS code wrong", // you left * times
      "36": "Google Auth. Wrong you left number times", //you left * times
      "37": "You have been signed up",
      "38": "You have been signed up",
      "39": "You have been signed up",
      "40": "The last time sent SMS was less than 60 seconds",
      "41": "The old password is wrong",
      "42": "Forbid to set withdrawl strategy",
      "43": "Failed to meet the set strategy requirements",
      "44": "You need to link Google Auth. First.",
      "45": "The user name or password is wrong", //you left * times
      "46": "The SMS type is wrong",
      "47": "Go to 2-Steps authentication",
      "48": "System busy",
      "49": "The Email type is wrong",
      "50": "The email address already exist",
      "51": "Verification failed, the verification imformation incomplete",
      "52": "Verification failed, the age don't meet the requirement",
      "53": "The ID verification has been used, please don't use other's",
      "54": "The admin password is wrong you left ${number} times", //you left * times
      "55": "The Google Auth. Malformed",
      "56": "The status of cancel withdral is wrong",
      "57": "Admin password is wrong",
      "58": "Bank card is bound",
      "59": "Assets within account, mailbox can't be modified",
      "60": "The system does not support mobile phone",
      "61": "The system does not support email",
      "62": "The system does not support Google authentication",
      "63": "Necessary condition of withdrawal strategy prohibits removal",
      "64": "Necessary condition of trading strategy prohibits removal",
      "65": "E-mail verified, prohibit to change",
      "66": "Please re-acquire the verification code",
      "67": "System error, sending email failed",
      "68": "Already registered successfully, but error sending email ",
      "69": "Google verification code has used",
      "70":
        "Google verification code has expired, please refresh the page and try again",
      "71": "Specifying pairs of transactions that do not exist in the market",
      "72": "The system does not support adding authentication addresses",
      "73": "Unsupported withdrawal for this asset",
      "74": "Unsupported recharge for this asset",
      "75": "Password retrieval has expired",
      "76": "Phone verification code has expired, please regain",
      "77": "The withdrawal amount cannot be less than the withdrawal fee",
      "78": "Invalid document issue date",
      "79": "Invalid document expiration date",
      "80": "Unsupported transaction pairs",
      "81": "Prohibit sell orders",
      "82": "Subscription limit for each user is 100000 sheets",
      "83": "Please complete LV2 real name authentication first",
      "84": "Purchase is not permitted",
      "85":
        "You have not set up a fund password yet, please set up a fund password first",
      "86":
        "The contract has reached the exercise time, the transaction commission stoped",
      "87": "Account Frozen",
      "88": "SSO redirection",
      "89": "Need to bind email first",
      "90": "Signature expired",
      "91": "Failed signature",
      "92": "Login anomaly",
      "93": "Aliyun Verification error",
      "101": "Need to agree to user agreement",
      "106": "Please pull the slider or refresh the page!",
      "107": "The user account is burned and frozen",
      "108": "User deleted",
      "109": "Verification timed out, please verify again",
      "110": "Email verification code has expired",
      "111": "Funds password required",
      "112": "Option does not existe",
      "113": "The exercise time has already passed ",
      "114": "Record does not existe",
      "115": "Insufficient assets available",
      "116": "Insufficient margi available",
      "117": "The issue size has already reached risk limits.",
      "118": "The redemption quantity is bigger than the quantity available",
      "119": "Abnormal margin frozen, please contact customer service",
      "120": "Please issue Option first",
      "121": "The maximum amount of each issue is 100,000",
      "122": "The number of issue and redemption should be positive integer",
      "123": "National area code error",
      "124": "Pair does not existe",
      "125": "Get SMS verification code too fast",
      "126": "It's too fast to get email",
      "127":"Withdrawal address error",
      "128":"Verification error,  doesn't meet verification requirements",
      "129":"Verification error, you've already submitted ",
      "130":"ID date error",
      "131":"Verification level error, you've already completed verification",
      "132":"Level 1, doesn't meet modify requirements",
      "133":"Modify token verification failed",
      "134":"ID error",
      "135":"Birthday format error",
      "136":"Wrong ID number",
      "137":"ID false use",
      "138":"Modify user info failed",
      "139":"No recharge address",
      //-------------------------------------------------------以上为后端code
      //-------------------------------------------------------以下为前端提示
      // //登录
      // "NAME_NOT_NULL":"User name is not empty !",
      // "PLEASE_ENTER":"Please enter the correct phone number or email !",
      // "PASSWORD_NOT_NULL":"The password is not empty !",
      // "PASSWORD_SHORT":"Password minimum length is 6, please check !",
      // "PASSWORD_UPPER_LIMIT":"You have reached the upper limit of input support !",
      //
      // // 手机注册
      // "PHONE_NOT_NULL":"The phone number is not empty !",
      // "PHONT_FORMAT_ERROR":"Phone number format error !",
      // "VERIFICATION_NOT_NULL":"The verification code is not empty !",
      // "PASSWORD_FORMAT_ERRPR":"The password format error !",
      // "RESETPASSWORD_NOT_MATCH":"Entered passwords differ, please check !",
      // "PHONE_VERIFICATION_SUCCEED":"Mobile verification code has been sent, please check !",
      //
      // //邮箱注册
      // "EMAIL_NOT_NULL":"The email account is not empty !",
      // "EMAIL_FORMAT_ERROR":"Email format error !",
      // "EMAIL_VERIFICATION_SUCCEED":"Email verification code has been sent, please check !",
      //
      // //忘记密码 第一步
      // "ENTER_PHONE_EMAIL":"Please enter the correct phone number or email address !",
      //
      // //验证账户
      // "VERIFICATION_SUCCEED":"Verification code has been sent, please check !",
      // "VERIFICATION_FORMAT_ERROR":"Please enter the correct verification code ！",
      //
      // //二次登录
      // "ENTER_GOOGLE_VERIFICATION":"Please enter Google verification code !",
      // "ENTER_CORRECT_GOOGLE":"Please enter the correct Google verification code !",
    };
  } else if (lang == "ja") {
    //日语
    status = {
      "-21":"不具合が発生しました。",
      "-20": "検証に失敗しました！正しくない操作手順です。",
      "-18": "E-mail Verification code error",
      "-17": "注文キャンセル失敗",
      "-16": "注文失敗",
      "-15": "本人認証に失敗しました。$回後でアカウントは凍結されています。",
      "-14": "無効なコード",
      "-13": "アカウントの認証の最大回数が達しました。2時間後でお試します。",
      "-12": "IPの認証の最大回数が達しました。2時間後でお試します。",
      "-11": "Google認証の最大回数が達しました。2時間後でお試します。",
      "-10":
        "このIPでのGoogle認証の最大回数が達しました。2時間後でお試します。",
      "-9": "sms認証の最大回数が達しました。2時間後でお試します。",
      "-8": "sms認証の最大回数が達しました。2時間後でお試します。",
      "-7": "このIPでのsms認証の最大回数が達しました。2時間後でお試します。",
      "-6": "このIPでのsms認証の最大回数が達しました。2時間後でお試します。",
      "-5": "The commission price deviated too much from the current price",
      "-4": "Aliyun Verification failed",
      "-3": "アカウント凍結",
      "-2": "IPフリーズ",
      "-1": "未ログイン",
      "1": "パラメータエラー",
      "2": "Phone Verification code error",
      "3": "システムビジー",
      "4": "利用規約を同意してください。",
      "5": "電話番号やメールアドレスは無効です。",
      "6": "パスワードは無効です。",
      "7": "システムビジー",
      "8": "SMSコードは無効です。",
      "9": "携帯電話の格式は無効です。",
      "10": "メールアドレスは無効です。",
      "11": "2段階認証に失敗しました。$回後でアカウントは凍結されています。",
      "12": "The only secondary strategy can't be untied",
      "13": "Google二段階認証が未設定です。",
      "14": "Please bind relevant strategy first",
      "15": "現在のパスワードと同じです。",
      "16": "ログインパスワードと取引パスワードが同じことはできません。",
      "17": "登録した携帯電話です。",
      "18": "現在のSMSコードは無効です。",
      "19": "新しいののSMSコードは無効です。",
      "20": "出金アドレスは間違っています。",
      "21": "出金金額は無効です。",
      "22": "取引パスワードは無効です。",
      "23": "Too frequent email requests ",
      "24": "出金金額は最大の制限に達しました。",
      "25": "本日出金金額の制限に達しました。",
      "26":
        "数回のIPアドレスのログインに失敗しました。2時間後で後で再度試してください。",
      "27": "5回のログインに失敗しました。10分間後で再度試してください。",
      "28": "cookieを有効にしてください。",
      "29": "5回の取引パスワードに失敗しました。30分間後で再度試してください。",
      "30":
        "大変もう分けございませんが、24時間以内に出金することができませんとなります。",
      "31": "出金可能の金額に達しません。",
      "32": "出金の安全テストは合格しません。",
      "33": "登録したメールアドレスです。",
      "34": "メールアドレスは無効です。",
      // "35":"sms認証コードが無効です。$回後でアカウントは凍結されています。",
      "35": "sms認証コードが無効です",
      "36":
        "Google Authenticator認証コードが正しくありません。number 回入力可能です。",
      "37": "登録完了です。",
      "38": "登録完了です。",
      "39": "登録完了です。",
      "40": "60秒後に再度取得しください。",
      "41": "現在のパスワードが間違っていました。",
      "42": "出金規約の設定が禁止です。",
      "43": "Failed to meet the set strategy requirements",
      "44": "Google二段階認証を設定してください。",
      "45":
        "アカウントまたはパスワードが無効です。number 回後でアカウントは凍結されています。",
      "46": "SMSの種類が間違っていました。",
      "47": "2段階認証へ",
      "48": "システムエラー",
      "49": "メールアドレスの種類が間違っていました。",
      "50": "メールアドレスが既に利用しました。",
      "51": "無効な情報なので、認証に失敗しました。",
      "52": "年齢は無効なので、認証に失敗しました。",
      "53": "既に本人認証しました。再度認証の必要はありません。",
      "54":
        "取引パスワードの認証に失敗しました。${number}回後でアカウントは凍結されています。",
      "55": "Google認証コード間は違いました。",
      "56": "出金のキャンセル状態は違いました。",
      "57": "取引パスワードは間違いました。",
      "58": "既に利用していた口座番号",
      "59":
        "アカウントの資産がまたある場合は、メールアドレスを変更できません。",
      "60": "The system does not support mobile phone",
      "61": "The system does not support email",
      "62": "Google Authenticator認証は対応しません。",
      "63": "出金時に必要な項目です。削除不可です。",
      "64": "取引時に必要な項目です。削除不可です。",
      "65": "認証済みメールアドレスです。変更することが出来ません。",
      "66": "コードを再取得する",
      "67": "System error, sending email failed",
      "68": "登録が完了しましたが、認証メールの送信はエラーです。",
      "69": "Google verification code has used",
      "70": "Google認証コードは無効です。フラッシュして再度入力する。",
      "71": "無効な取引種類です。",
      "72": "認証アドレスの追加ができません。",
      "73": "出金ができません。",
      "74": "入金ができません。",
      "75": "Password retrieval has expired",
      "76": "Phone verification code has expired, please regain",
      "77": "The withdrawal amount cannot be less than the withdrawal fee",
      "78": "Invalid document issue date",
      "79": "Invalid document expiration date",
      "80": "Unsupported transaction pairs",
      "81": "Prohibit sell orders",
      "82": "Subscription limit for each user is 100000 sheets",
      "83": "Please complete LV2 real name authentication first",
      "84": "Purchase is not permitted",
      "85":
        "You have not set up a fund password yet, please set up a fund password first",
      "86":
        "The contract has reached the exercise time, the transaction commission stoped",
      "87": "Account Frozen",
      "88": "SSO redirection",
      "89": "Need to bind email first",
      "90": "Signature expired",
      "91": "Failed signature",
      "92": "Login anomaly",
      "93": "Aliyun Verification error",
      "101": "Need to agree to user agreement",
      "106": "Please pull the slider or refresh the page!",
      "107": "The user account is burned and frozen",
      "108": "User deleted",
      "109": "Verification timed out, please verify again",
      "110": "Email verification code has expired",
      "111": "Funds password required",
      "112": "オプションが存在していない。",
      "113": "オプションの満期でした。",
      "114": "履歴なし",
      "115": "利用可能な資産は不足です。",
      "116": "利用可能な証拠金は不足です。",
      "117": "発行数量はリスク限度に達しました。",
      "118": "返却可能な数量より大きいです。",
      "119": "証拠金の凍結は不具合がした。サーポートにお問い合わせください。",
      "120": "まずオプションの発行へ",
      "121": "毎回オプション発行の最大数量は100000枚です。",
      "122": "発行または返却していた数量は正整数です。",
      "123": "国番号は正しくありません。",
      "124": "通貨ペアは無効です。",
      "125": "Get SMS verification code too fast",
      "126": "数分間後でメールを再取得してください。",
      "127":"送金アドレス先は正しくありません。",
      "128":"認証できません。",
      "129":"認証に不具合が発生しました。",
      "130":"提出書類の発行年月日または満了日は正しくありません。",
      "131":"本人認証済みです。",
      "132":"レベル1認証してから、変更ができます。",
      "133":"チェックに失敗しました。",
      "134":"提出書類は正しくありません。",
      "135":"生年月日は正しくありません。",
      "136":"番号は正しくありません。",
      "137":"提出書類は無効です。",
      "138":"変更に失敗しました。",
      "139":"アドレスはありません",
    };
  } else if (lang == "th") {
    //泰语
    status = {
      "-21":"Unknown error",
      "-20": "Verification failed, a Wrong verification step",
      "-18": "E-mail Verification code error",
      "-17": "ยกเลิกล้มเหลว",
      "-16": "สั่งซื้อล้มเหลว",
      "-15": "รหัสไม่ผ่าน ท่านยังมีโอกาสอีก${number}ครั้ง",
      "-14": "ระบบไม่สนับสนุน",
      "-13": "รหัสบัญชีไม่ผ่าน กรุณาทดลองอีกครั้งหลังสองชั่วโมง",
      "-12": "รหัส ipไม่ผ่าน กรุณาทดลองอีกครั้งหลังสองชั่วโมง",
      "-11": "รหัสกุเกิ้ลไม่ผ่าน กรุณาทดลองอีกครั้งหลังสองชั่วโมง",
      "-10": "รหัส ip กุเกิ้ลไม่ผ่าน กรุณาทดลองอีกครั้งหลังสองชั่วโมง",
      "-9": "รหัส SMS ไม่ผ่าน กรุณาทดลองอีกครั้งหลังสองชั่วโมง",
      "-8": "รหัสบัญชีผิดหลายครั้ง กรุณาทดลองอีกครั้งหลังสองชั่วโมง",
      "-7": "รหัส ip ยี่นขอหลายครั้ง กรุณาทดลองอีกครั้งหลังสองชั่วโมง",
      "-6": "รหัส ipผิดหลายครั้ง กรุณาทดลองอีกครั้งหลังสองชั่วโมง",
      "-5": "The commission price deviated too much from the current price",
      "-4": "Aliyun Verification failed",
      "-3": "บัญชีถูกระงับ",
      "-2": "ถูกระงับ",
      "-1": "ไม่ได้เข้าสู่ระบบ",
      "0": "สำเร็จ",
      "1": "ข้อมูตัวเลขผิดพลาด",
      "2": "รหัสมือถือผิดพลาด ท่านยังมีโอกาสอีก${number}ครั้ง",
      "3": "ระบบไม่ว่าง",
      "4": "กรุณายืนยอมข้อตกลงก่อน",
      "5": "หมายเลขมือถือ / อีเมลไม่ถูกต้อง",
      "6": "รหัสไม่ตรง",
      "7": "ระบบไม่ว่าง",
      "8": "รหัส SMS ผิด",
      "9": "หมายเลขมือถือ ผิด",
      "10": "รหัสอีเมลผิด",
      "11": "การยืนยัน Google ไม่ถูกต้อง ท่านยังมีโอกาสอีก ${number} ครั้ง",
      "12": "กลยุทธ์สองครั้งที่ไม่สามารถเปลี่ยนแปลงได้",
      "13": "ไม่สามารถเชื่อมต่อกุเกิ้ลได้",
      "14": "Please bind relevant strategy first",
      "15": "รหัสนี้ไม่ตรงกับอันเดิม",
      "16": "รหัส password ไม่ตรง",
      "17": "ไม่มีหมายเลขมือถือนี้",
      "18": "รหัส SMS ผิด",
      "19": "รหัส SMS ผิด",
      "20": "สถานที่ถอนเงินผิด",
      "21": "จำนวนเงินถอนมากกว่าเงินในบัญชี",
      "22": "รหัสเข้าสู่ระบบผิด",
      "23": "Too frequent email requests ",
      "24": "จำนวนเงินถอนมากกว่ากำนดต่อครั้ง",
      "25": "จำนวนเงินถอนมากกว่ากำนดต่อวัน",
      "26": "สถานที่ IP ใช้เกินครั้ง กรุณาลองใหม่อีกครั้งหลัง2ชั่วโมง",
      "27": "ใส่รหัสผิดติดต่อกันห้าครั้ง  กรุณาลองอีกครั้งหลัง 10 นาที",
      "28": "กรุณาเปิดหcookie",
      "29": "รหัสเข้าสู่ระบบผิดห้าครั้ง กรุณาลองอีกครั้งหลั 30 สิบนาที ",
      "30": "ห้ามถอนเงินภายใน 24 ชั่วโมง",
      "31": "จำนวนเงินที่ถอนน้อยกว่าวงเงินกำหนด",
      "32": "การทดสอบความปลอดภัยการถอนไม่ผ่าน",
      "33": "อีเมลมีคนอื่นใช้อยู่แล้ว",
      "34": "อีเมลหมดอายุแล้ว",
      "35": "รหัสSMS ผิด ท่านยังมีโอกาสอีก number ครั้ง",
      "36": "รหัสกุเกิ้ลผิด ท่านยังมีโอกาสอีก ${number} ครั้ง",
      "37": "เข้าสู่ระบบแล้ว",
      "38": "เข้าสู่ระบบแล้ว",
      "39": "เข้าสู่ระบบแล้ว",
      "40": "การส่ง SMS ครั้งล่าสุดน้อยกว่า 60 วินาที,${number}",
      "41": "รหัสเก่าผิด",
      "42": "ถูกห้ามติดตั้งกลยุทธ์การถอน",
      "43": "องค์ประกอบไม่ผ่านความต้องการของกลยุทธ์ติดตั้ง",
      "44": "ขั้นตอนแรกท่านต้องเชื่อมต่อกุเกิ้ล",
      "45": "รหัสผิด ท่านยังมีโอกาสอีกnumberครั้ง",
      "46": "SMS พิมพ์ผิด",
      "47": "เข้าสู่ระบบยืนยันสองขั้นตอน",
      "48": "ระบบไม่ว่าง",
      "49": "อีเมลพิมพ์ผิด",
      "50": "ไม่มีที่อยู่อีเมลนี้",
      "51": "ยืนยันล้มเหลว ข้อมูลยืนยันไม่สมบูรณ์",
      "52": "ยืนยันล้มเหลว อายุไม่ผ่าน",
      "53": "บัตรนี้มีคนใช้อยู่แล้ว  กรุณาอย่าใช้ของคนอื่น",
      "54": "รหัสเข้าสู่ระบบผิด ท่านยังคงเหลือเวลาอีก${number}ครั้ง",
      "55": "รหัสกูเกิลไม่ถูกต้อง",
      "56": "สถานะการยกเลิกถอนเงินผิด",
      "57": "รหัสเข้าสู่ระบบผิด",
      "58": "ผูกมัดกับบัตรธนาคาร",
      "59": "สินทรัพย์ที่มีอยู่ของบัญชีไม่สามารถแก้ไขกล่องจดหมายได้",
      "60": "ไม่สนับสนุนโทรศัพท์มือถือชั่วคราว",
      "61": "ระบบไม่สนับสนุนอีเมล",
      "62": "ระบบไม่สนับสนุน Google Authenticator",
      "63": "ไม่สามารถลบข้อกำหนดเบื้องต้นสำหรับนโยบายการถอนเงินได้",
      "64": "เงื่อนไขที่จำเป็นสำหรับกลยุทธ์การค้าห้ามมิให้นำออก",
      "65": "อีเมลได้รับการรับรองเพื่อห้ามการปรับเปลี่ยนกล่องจดหมาย",
      "66": "โปรดขอรับรหัสยืนยันอีกครั้ง",
      "67": "สาเหตุระบบ อีเมลส่งไม่ผ่าน",
      "68": "ลงทะเบียนแล้วแต่ส่งจดหมายผิด",
      "69": "ใช้รหัสยืนยันของ Google แล้ว",
      "70":
        "รหัสยืนยันของ Google หมดอายุแล้วโปรดรีเฟรชหน้าเว็บเพื่อลองอีกครั้ง",
      "71": "คู่การทำธุรกรรมที่ไม่มีอยู่ในตลาดที่ระบุ",
      "72": "ระบบไม่สนับสนุนการเพิ่มที่อยู่การตรวจสอบสิทธิ์",
      "73": "เนื้อหานี้ไม่สนับสนุนการถอนเงิน",
      "74": "เนื้อหานี้ไม่สนับสนุนการเติมเงิน",
      "75": "ขั้นตอนหารหัสหมดอายุการ",
      "76": "การยืนยันรหัสหมดอายุการ  กรุณาตั้งรหัสใหม่",
      "77": "วงเงินที่ถอนต้องมากกว่าค่าทำเนียม",
      "78": "Invalid document issue date",
      "79": "Invalid document expiration date",
      "80": "Unsupported transaction pairs",
      "81": "Prohibit sell orders",
      "82": "Subscription limit for each user is 100000 sheets",
      "83": "Please complete LV2 real name authentication first",
      "84": "Purchase is not permitted",
      "85": "คุณยังไม่ได้ตั้งรหัสผ่านเงินกรุณาตั้งรหัสผ่านเงินก่อน",
      "86":
        "The contract has reached the exercise time, the transaction commission stoped",
      "87": "Account Frozen",
      "88": "SSO redirection",
      "89": "Need to bind email first",
      "90": "Signature expired",
      "91": "Failed signature",
      "92": "Login anomaly",
      "93": "Aliyun Verification error",
      "101": "Need to agree to user agreement",
      "106": "Please pull the slider or refresh the page!",
      "107": "The user account is burned and frozen",
      "108": "User deleted",
      "109": "Verification timed out, please verify again",
      "110": "Email verification code has expired",
      "111": "Funds password required",
      "112": "Option does not existe",
      "113": "The exercise time has already passed ",
      "114": "Record does not existe",
      "115": "Insufficient assets available",
      "116": "Insufficient margi available",
      "117": "The issue size has already reached risk limits.",
      "118": "The redemption quantity is bigger than the quantity available",
      "119": "Abnormal margin frozen, please contact customer service",
      "120": "Please issue Option first",
      "121": "The maximum amount of each issue is 100,000",
      "122": "The number of issue and redemption should be positive integer",
      "123": "National area code error",
      "124": "Pair does not existe",
      "125": "Get SMS verification code too fast",
      "126": "It's too fast to get email",
      "127":"Withdrawal address error",
      "128":"Verification error,  doesn't meet verification requirements",
      "129":"Verification error, you've already submitted ",
      "130":"ID date error",
      "131":"Verification level error, you've already completed verification",
      "132":"Level 1, doesn't meet modify requirements",
      "133":"Modify token verification failed",
      "134":"ID error",
      "135":"Birthday format error",
      "136":"Wrong ID number",
      "137":"ID false use",
      "138":"Modify user info failed",
      "139":"No recharge address",

    };
  } else if (lang == "vi") {
    //越南语
    status = {
      "-21":"Unknown error",
      "-20": "Verification failed, a Wrong verification step",
      "-18": "E-mail Verification code error",
      "-17": "Xóa đơn hàng thất bại",
      "-16": "Đặt hàng thất bại",
      "-15": "Xác thực họ tên thật thất bại , bạn vẫn còn  ${number}lần cơ hội",
      "-14": "Mã vạch không cho phép sử dụng ",
      "-13":
        "Người dùng này đã tiến hành xác thực họ tên thật quá nhiều lần, vui lòng thử lại sau 2 tiếng đồng hồ",
      "-12":
        "IP  này đã tiến hành xác thực họ tên thật quá nhiều lần, vui lòng thử lại sau 2 tiếng đồng hồ",
      "-11":
        "Mã xác thực google tài khoản này đã xảy ra quá nhiều lần sai sót , vui lòng thử lại sau 2 tiếng đồng hồ",
      "-10":
        "Mã xác thực google IP này đã xảy ra quá nhiều lần sai sót , vui lòng thử lại sau 2 tiếng đồng hồ",
      "-9":
        "Đề nghị gửi mã xác thực của tài khoản này đã thao tác lặp lại quá nhiều lần ,  vui lòng thử lại sau 2 tiếng đồng hồ",
      "-8":
        "Mã xác thực tài khoản này đã xảy ra quá nhiều lần sai sót , vui lòng thử lại sau 2 tiếng đồng hồ",
      "-7":
        "Đề nghị gửi mã xác thực của IP này đã thao tác lặp lại quá nhiều lần ,  vui lòng thử lại sau 2 tiếng đồng hồ",
      "-6":
        "Mã xác thực IP này đã xảy ra quá nhiều lần sai sót , vui lòng thử lại sau 2 tiếng đồng hồ",
      "-5": "The commission price deviated too much from the current price",
      "-4": "Aliyun Verification failed",
      "-3": "Hạn chế tài khoản ",
      "-2": "Hạn chế IP",
      "-1": "Chưa đăng nhập",
      "0": "Thành công",
      "1": "Tham số không đúng",
      "2": "Mã xác thực điện thoại không đúng , bạn còn {number}lần cơ hội sai",
      "3": "Hệ thống bận",
      "4": "Vui lòng đồng ý với hiệp nghị trước ",
      "5": "Tên người dùng không chính xác",
      "6":
        "Cách thức mật khẩu không chính xác hoặc 2 lần nhập mật khẩu không giống nhau ",
      "7": "Hệ thống bận ",
      "8": "Cách thức mật khẩu không đúng ",
      "9": "Cách thức số điện thoại không đúng ",
      "10": "Cách thức E-mail không đúng ",
      "11": "Mã xác thực google không đúng , bạn còn ${number} lần cơ hội sai ",
      "12": "Không được bỏ cài đặt sách lược lần 2 duy nhất ",
      "13": "Chưa cài đặt google vì vậy không tồn tại hủy cài đặt ",
      "14": "Please bind relevant strategy first",
      "15": "Mật khẩu và mật khẩu cũ giống nhau ",
      "16": "Mật khẩu tiền vốn /mật khẩu đăng nhập không được giống nhau ",
      "17": "Số điện thoại đã tồn tại ",
      "18": "Mã xác thực điện thoại không chính xác",
      "19": "Mã xác thực điện thoại không chính xác",
      "20": "Địa chỉ rút tiền không đúng ",
      "21": "Số tiền rút ra không được lớn hơn số tiền có thể dùng ",
      "22": "Cách thức mật khẩu tiền vốn không đúng ",
      "23": "Too frequent email requests ",
      "24":
        "Số tiền rút ra không được lớn hơn số tiền cao nhất mỗi lần rút tiền ",
      "25": "Số tiền rút ra một ngày đã đạt đến giới hạn cho phép cao nhất ",
      "26":
        "Số lần đăng nhập IP của bạn thất bại quá nhiều lần , vì vậy sẽ bị đóng băng 2 tiếng đồng hồ ",
      "27":
        "Mật khẩu đăng nhập liên tục nhập sai 5 lần ,  vì vậy sẽ bị đóng băng 10 phút ",
      "28": "Vui lòng mở cokie",
      "29":
        "Mật khẩu tiền vốn liên tục nhập sai 5 lần ,  vui lòng chờ đợi 30 phút thử lại ",
      "30": "Cấm rút tiền trong vòng 24 giờ ",
      "31": "Số tiền rút ra phải nhỏ hơn số tiền nhỏ nhất mỗi lần rút tiền ",
      "32": "Thử an toàn rút tiền không được thông qua ",
      "33": "E-mail đã bị sử dụng ",
      "34": "E-mail đã hết hạn",
      // "35":"Mã xác thực điện thoại không đúng , bạn còn {number}lần cơ hội sai ",
      "35": "Mã xác thực điện thoại không đúng ",
      "36": "Mã xác thực google không đúng , bạn còn ${number} lần cơ hội sai ",
      "37":
        "Cách lần gửi E-mail trước không đủ 15 phút , nhưng đã đăng kí thành công ",
      "38": "IP gửi E-mail bị hạn chế nhưng đã đăng kí thành công ",
      "39": "Tài khoản gửi E-mail bị hạn chế nhưng đã đăng kí thành công ",
      "40": "Cách lần nhận mã xác thực lần trước không đủ 60 giây",
      "41": "Mật khẩu cũ không chính xác",
      "42": "Cấm cài đặt sách lược rút tiền ",
      "43": "Chưa đạt được yêu cầu của sách lược cài đặt.",
      "44":
        "Cài đặt sách lược có liên quan đến google cần phải cài đặt google trước ",
      "45": "Mật khẩu tài khoản không đúng , bạn vẫn còn number cơ hội ",
      "46": "Loại hình tin nhắn không chính xác ",
      "47": "Tiến hành xác thực đăng nhập lần 2 ",
      "48": "Hệ thống bận ",
      "49": "Loại hình E-mail không chính xác ",
      "50": "E-mail đã tồn tại ",
      "51": "Xác thực thất bại ,thông tin xác thực được nhập vào không đầy đủ ",
      "52": "Xác thực thất bại ,độ tuổi không phù hợp với yêu cầu ",
      "53":
        "Họ tên thật tài khoản này đã được xác thực , đề nghị không được sử dụng thông tin khác ni'mei",
      "54":
        "Mật khẩu xác thực tiền vốn không đúng , bạn vẫn còn ${number}cơ hội sai ",
      "55": "Cách thức mã xác thực google không đúng ",
      "56": "Trạng thái hủy rút tiền không đúng ",
      "57": "Xác thực mật khẩu tiền vốn không đúng ",
      "58": "Đã cài đặt thẻ ngân hàng ",
      "59": "Tài khoản tồn tại tài sản không thể sửa đổi E-mail ",
      "60": "The system does not support mobile phone",
      "61": "Hệ thống không cho phép sử dụng E-mail ",
      "62": "Hệ thống không cho phép sử dụng hệ thống xác thực google ",
      "63": "Cấm dịch chuyển điều kiện bắt buộc của sách lược rút tiền ",
      "64": "Cấm dịch chuyển điều kiện bắt buộc của sách lược giao dịch ",
      "65": "E-mail đã xác thực cấm sửa đổi E-mail ",
      "66": "Xin vui lòng gửi để nhận lại mã xác thực ",
      "67": "Do nguyên nhân hệ thống , gửi E-mail xảy ra sai sót ",
      "68": "Đã đăng kí thành công , nhưng gửi E-mail xảy ra sai sót ",
      "69": "Google verification code has used",
      "70":
        "Mã xác thực google đã hết hạn , vui lòng làm mới trang web để thử lại",
      "71": "Trong thị trường chỉ định không tồn tại giao dịch đối ",
      "72": "Hệ thống không cho phép thêm địa chỉ xác thực ",
      "73": "Tài sản này không cho phép rút tiền ",
      "74": "Tài sản này không cho phép nạp tiền ",
      "75": "Các bước tìm lại mật khẩu đã quá thời gian quy định ",
      "76":
        "Mã xác thực qua điện thoại đã quá thời gian quy định , xin vui lòng gửi để nhận lại",
      "77": "Số tiền có thể rút ra không được nhỏ hơn phí thủ tục rút tiền ",
      "78": "Ngày tháng năm cấp phát giấy tờ vô hiệu ",
      "79": "Ngày tháng năm giấy tờ hết hạn vô hiệu ",
      "80": "Unsupported transaction pairs",
      "81": "Cấm đặt đơn hàng bán ra ",
      "82": "Mức giới hạn nhận đặt mua của mỗi người dùng là 100000 tờ ",
      "83": "Xin vui lòng hoàn thành xác thực họ tên thật LV2",
      "84": "Không cho phép đăng kí mua ",
      "85":
        "You have not set up a fund password yet, please set up a fund password first",
      "86":
        "The contract has reached the exercise time, the transaction commission stoped",
      "87": "Account Frozen",
      "88": "SSO redirection",
      "89": "Need to bind email first",
      "90": "Signature expired",
      "91": "Failed signature",
      "92": "Login anomaly",
      "93": "Aliyun Verification error",
      "101": "Need to agree to user agreement",
      "106": "Please pull the slider or refresh the page!",
      "107": "The user account is burned and frozen",
      "108": "User deleted",
      "109": "Verification timed out, please verify again",
      "110": "Email verification code has expired",
      "111": "Funds password required",
      "112": "Option does not existe",
      "113": "The exercise time has already passed ",
      "114": "Record does not existe",
      "115": "Insufficient assets available",
      "116": "Insufficient margi available",
      "117": "The issue size has already reached risk limits.",
      "118": "The redemption quantity is bigger than the quantity available",
      "119": "Abnormal margin frozen, please contact customer service",
      "120": "Please issue Option first",
      "121": "The maximum amount of each issue is 100,000",
      "122": "The number of issue and redemption should be positive integer",
      "123": "National area code error",
      "124": "Pair does not existe",
      "125": "Get SMS verification code too fast",
      "126": "It's too fast to get email",
      "127":"Withdrawal address error",
      "128":"Verification error,  doesn't meet verification requirements",
      "129":"Verification error, you've already submitted ",
      "130":"ID date error",
      "131":"Verification level error, you've already completed verification",
      "132":"Level 1, doesn't meet modify requirements",
      "133":"Modify token verification failed",
      "134":"ID error",
      "135":"Birthday format error",
      "136":"Wrong ID number",
      "137":"ID false use",
      "138":"Modify user info failed",
      "139":"No recharge address",

    };
  } else {
    //默认中文
    status = {
      "-21":"未知报错",
      "-20": "验证不通过，错误的验证步骤",
      // "-18":"邮箱验证码错误，您还有 number 次错误机会！",
      "-18": "邮箱验证码错误！",
      "-17": "撤单失败",
      "-16": "下单失败",
      "-15": "实名认证错误",
      "-14": "不支持的编码",
      "-13": "该账户进行实名认证次数过多，请2小时后再试",
      "-12": "该ip进行实名认证次数过多，请2小时后再试",
      "-11": "该账户谷歌验证错误次数过多，请2小时后再试",
      "-10": "该ip谷歌验证错误次数过多，请2小时后再试",
      "-9": "该账户验证码请求频繁，请2小时后再试",
      "-8": "该账户验证码错误次数过多，请2小时后再试",
      "-7": "该ip验证码请求频繁，请2小时后再试",
      "-6": "该ip验证码错误次数过多，请2小时后再试",
      "-5": "委托价格偏离当前价格过大",
      "-4": "阿里验证没通过",
      "-3": "账户限制",
      "-2": "IP限制",
      "-1": "未登录",
      "0": "成功",
      "1": "参数错误", // 参数错误
      // "2":"手机验证码错误，您还有 number 次错误机会！",
      "2":"手机验证码错误！",
      "3":"系统繁忙",
      "4":"请先同意协议",
      "5":"用户名不正确",
      "6":"密码格式不正确或两次输入的密码不一致",
      "7":"系统繁忙",
      "8":"短信验证码格式错误",
      "9":"手机号格式不正确",
      "10":"邮箱格式不正确",
      "11":"谷歌验证错误，您还有 ${number} 次错误机会",
      "12":"不能解绑唯一的二次策略",
      "13":"未绑定谷歌不存在解绑",
      "14":"请先绑定相应策略",
      "15":"密码与旧密码相同",
      "16":"资金密码/登陆密码不能相同",
      "17":"手机号已经存在",
      "18":"手机验证码不正确",
      "19":"手机验证码不正确",
      "20":"提现地址错误",
      "21":"提现金额不能大于可用金额",
      "22":"资金密码格式错误",
      "23":"邮件请求太频繁",
      "24":"提现金额大于单笔最大提现金额",
      "25":"单日提现额度已经达到",
      "26":"您所在IP登录失败次数过多，登录冻结2小时",
      "27":"登录密码连续错误5次，登录冻结10分钟",
      "28":"请开启cookie",
      "29":"资金密码连续错误5次，请30分钟后再试",
      "30":"24小时内禁止提现",
      "31":"提现金额小于单笔最小提现金额",
      "32":"提现安全测试不通过",
      "33":"邮件已经使用了",
      "34":"邮件已经过期了",
      "35":"手机验证码错误!",
      "36":"谷歌验证错误，您还有 ${number} 次错误机会",
      "37":"距离上一次发送邮件不足15分钟，但是已经注册成功",
      "38":"ip发送邮件受限制但是已经注册成功",
      "39":"账户发送邮件受限制但是已经注册成功",
      "40":"距离上一次获取验证码不足60秒",
      "41":"旧密码不正确",
      "42":"禁止设置提现策略",
      "43":"未达到设置策略的要求",
      "44":"设置谷歌相关策略需要先设置谷歌",
      "45":"账号或密码错误，您还有 number 次机会",
      "46":"短信类型不正确",
      "47":"进入二次登陆验证",
      "48":"系统繁忙",
      "49":"邮件类型不正确",
      "50":"邮箱已经存在",
      "51":"认证失败，输入认证信息不全",
      "52":"认证失败，年龄不符合要求",
      "53":"该实名用户已认证，请勿使用他人信息",
      "54":"资金密码验证错误，您还有${number}次错误机会",
      "55":"谷歌验证码格式错误",
      "56":"取消提现状态错误",
      "57":"资金密码验证错误",
      "58":"银行卡已绑定",
      "59":"账户存在资产不能修改邮箱",
      "60":"系统不支持手机",
      "61":"系统不支持邮箱",
      "62":"系统不支持谷歌验证器",
      "63":"提现策略的必要条件禁止移除",
      "64":"交易策略的必要条件禁止移除",
      "65":"邮箱已经认证禁止修改邮箱",
      "66":"请重新获取验证码",
      "67":"系统原因，发送邮件错误",
      "68":"已经注册成功，但是发送邮件错误",
      "69":"谷歌验证码已使用",
      "70":"谷歌验证码已过期，请刷新页面重试",
      "71":"指定市场中不存在的交易对",
      "72":"系统不支持添加认证地址",
      "73":"此资产不支持提现",
      "74":"此资产不支持充值",
      "75":"找回密码步骤已过期",
      "76":"手机验证码已过期，请重新获取",
      "77":"提现金额不能小于提现手续费",
      "78":"证件颁发日期无效",
      "79":"证件到期日期无效",
      "80":"不支持的交易对",
      "81":"禁止下卖单",
      "82":"单用户认购限额为100000张",
      "83":"请先完成LV2实名认证",
      "84":"不允许申购",
      "85":"您还未设置资金密码，请先设置资金密码",
      "86":"合约已到行权时间，停止交易委托",
      "87":"账户已冻结",
      "88":"SSO重定向",
      "89":"需要先绑定邮箱",
      "90":"签名过期",
      "91":"签名不通过",
      "92":"登陆异常",
      "93":"阿里验证出错",
      "101":"需要同意用户协议",
      "106":"请拉动滑块或刷新页面！",//需要阿里验证
      "107":"用户爆仓冻结",
      "108":"用户被删除",
      "109":"验证超时，请重新验证",
      "110":"邮件验证码已过期",
      "111":"需要资金密码",
      "112":"期权不存在",
      "113":"期权行权时间已过",
      "114":"记录不存在",
      "115":"可用资产不足",
      "116":"可用保证金不足",
      "117":"发行数量已达到平台风控限额",
      "118":"赎回数量大于可赎数量",
      "119":"保证金冻结异常，请联系客服",
      "120":"请先发行期权",
      "121":"单次最大发行数量为100,000",
      "122":"发行和赎回数量应该为正整数",
      "123":"国家区号错误",
      "124":"交易对不存在",
      "125":"获取短信验证码过快",
      "126":"获取邮件过快",
      "127":"提币地址错误",
      "128":"认证等级错误，您不符合认证要求",
      "129":"认证错误，您已提交审核",
      "130":"证件日期有问题",
      "131":"认证等级错误，您已完成认证",
      "132":"当前认证等级不为1，不满足修改条件",
      "133":"修改token 校验失败",
      "134":"证件错误",
      "135":"生日格式错误",
      "136":"证件号码错误",
      "137":"证件非法使用",
      "138":"更新用户信息失败",
      "139":"暂无充值地址",

    };
  }
  return status[code];
};
export default statusCode;
